nums=list(range(3,31,3))
for num in nums:
    print(num)